function CLASS_SPLIT_HORIZON(o,a,b)
{
	this.objA	= a;
	this.objB	= b;
	this.obj	= o;

	var me = this;

	this.obj.onmouseup		=	function()
								{
									me.obj.releaseCapture();
									me.obj.onmousemove=null;
								}
	this.obj.onmousedown	=	function()
								{
									me.obj.setCapture();
									me.obj.onmousemove	=	function()
															{
																if(typeof(me.objA)!="undefined"&&me.objA)
																{
																	var ra = me.objA.getBoundingClientRect();
																	if(event.clientX>ra.left)
																	{
																		me.objA.style.width	= event.clientX-ra.left;
																	}
																}

																if(typeof(me.objB)!="undefined"&&me.objB)
																{
																	var rb = me.objB.getBoundingClientRect();
																	if(event.clientX<rb.right)
																	{
																		me.objB.style.width = rb.right - event.clientX;
																	}
																}
															}
								}
	this.obj.style.cursor	= "col-resize";
}

function CLASS_SPLIT_VERTICAL(o,a,b)
{
	this.lastY	= 0;	
	this.objA	= a;
	this.objB	= b;
	this.obj	= o;

	var me = this;

	this.obj.onmouseup		=	function()
								{
									me.obj.releaseCapture();
									me.obj.onmousemove=null;
								}
	this.obj.onmousedown	=	function()
								{
									me.obj.setCapture();
									me.obj.onmousemove	=	function()
															{
																if(typeof(me.objA)!="undefined"&&me.objA)
																{
																	var ra = me.objA.getBoundingClientRect();
																	if(event.clientY>ra.top)
																	{
																		me.objA.style.height	= event.clientY-ra.top;
																	}
																}

																if(typeof(me.objB)!="undefined"&&me.objB)
																{
																	var rb = me.objB.getBoundingClientRect();
																	if(event.clientY<rb.bottom)
																	{
																		me.objB.style.height = rb.bottom - event.clientY;
																	}
																}
															}
								}
	this.obj.style.cursor	= "row-resize";
}